package cn.yitun.chat.yitunservercommonlib.dataentity.vo.login;

import cn.yitun.chat.yitunservercommonlib.crud.yitun.BaseVo;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class OnlineUserVo extends BaseVo {

    private Long userId;
    /**
     * 用户uuid
     */
    private String userUuid;
    /**
     * socket code 与 在登录jwttoken成功后，websocket请求验证jwttoken时创建
     */
    private String sockCode;
    /**
     * jwt
     */
    private String token;
    /**
     *
     */
    private String ip;
    /**
     *
     */
    private String username;
    /**
     *
     */
    private String nickName;

    public OnlineUserVo(Long userId , String token ){
        this.userId = userId ;
        this.token = token;
    }
}
